class Solution:
    def findJudge(self, n: int, trust: List[List[int]]) -> int:
        all_trust_other = [a for a, _ in trust]
        dont_trust_any = [i for i in range(1, n+1) if i not in all_trust_other]
        for i in dont_trust_any:
            if all([[j, i] in trust for j in range(1, n+1) if i != j]):
                return i
        return -1
